Fix updating sources with more than one crate
authorAlex Crichton <alex@alexcrichton.com>
Mon, 13 Oct 2014 16:54:08 +0000 (09:54 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 13 Oct 2014 16:54:08 +0000 (09:54 -0700)
commitc2e999601161673f738302e727adbc7a06c1539a
tree79e1766b00a1074d0919e82c0f2cf6db9c40b9b3
parent0881adf3eef5283bdfc006a23ea907b6529b0027
Fix updating sources with more than one crate

When a source has multiple crates inside of it, `cargo update -p foo` would
previously not actually update anything because the extra crates were continuing
to lock the source to the same revision. This change updates the "avoid me"
logic to avoid *sources*, not *packages*.

Closes #697
src/cargo/ops/cargo_generate_lockfile.rs
tests/test_cargo_compile_git_deps.rs